package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Stock;
import cn.wolfcode.crm.qo.QueryObject;

import java.util.List;

public interface StockMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Stock stock);

    Stock selectByPrimaryKey(Long id);

    List<Stock> selectAll();

    int updateByPrimaryKey(Stock stock);

    Integer selectForCount(QueryObject qo);

    List<Stock> selectForList(QueryObject qo);

    Stock selectByProductId(Long productId);

    int updateNumber(Stock stock);

    void updateNewNumber(Stock stock);
}